import React, { useState } from 'react';
import { Button, Modal } from 'antd';

function Mymodal(props) {
    var {data} = props;
    return (
        <div className='mymodal'>
            <Modal title={data.title} open={data.isModalOpen} footer={null} >
                {
                    data.form
                }
            </Modal>
        </div>
    );
}

export default Mymodal;